﻿using System.Text.Json.Serialization;

namespace FlyingEye.ComeServices
{
    public class ComeNotification
    {
        public ComeNotification(
            string agentId,
            NotificationTemplate templateData,
            bool isAt,
            string templateId,
            bool toAll,
            List<string> users,
            string userType)
        {
            AgentId = agentId;
            TemplateData = templateData;
            IsAt = isAt;
            TemplateId = templateId;
            ToAll = toAll;
            Users = users;
            UserType = userType;
        }

        [JsonPropertyName("agent_id")]
        public string AgentId { get; set; }

        [JsonPropertyName("template_data")]
        public NotificationTemplate TemplateData { get; set; }

        [JsonPropertyName("isAt")]
        public bool IsAt { get; set; }

        [JsonPropertyName("template_id")]
        public string TemplateId { get; set; }

        [JsonPropertyName("to_all")]
        public bool ToAll { get; set; }

        [JsonPropertyName("to_user")]
        public List<string> Users { get; set; }

        [JsonPropertyName("user_type")]
        public string UserType { get; set; }
    }
}
